\(\int \frac {(3+3 \sin (e+f x))^{5/2}}{(c+d \sin (e+f x))^2} \, dx\) [541]

   Optimal result
   Rubi [A] (verified)
   Mathematica [C] (verified)
   Maple [B] (verified)
   Fricas [B] (verification not implemented)
   Sympy [F(-1)]
   Maxima [F]
   Giac [B] (verification not implemented)
   Mupad [F(-1)]

Optimal result

Integrand size = 27, antiderivative size = 162 \[ \int \frac {(3+3 \sin (e+f x))^{5/2}}{(c+d \sin (e+f x))^2} \, dx=\frac {9 \sqrt {3} (c-d) (3 c+5 d) \text {arctanh}\left (\frac {\sqrt {3} \sqrt {d} \cos (e+f x)}{\sqrt {c+d} \sqrt {3+3 \sin (e+f x)}}\right )}{d^{5/2} (c+d)^{3/2} f}-\frac {27 (3 c+d) \cos (e+f x)}{d^2 (c+d) f \sqrt {3+3 \sin (e+f x)}}+\frac {9 (c-d) \cos (e+f x) \sqrt {3+3 \sin (e+f x)}}{d (c+d) f (c+d \sin (e+f x))} \]

[Out]

a^(5/2)*(c-d)*(3*c+5*d)*arctanh(cos(f*x+e)*a^(1/2)*d^(1/2)/(c+d)^(1/2)/(a+a*sin(f*x+e))^(1/2))/d^(5/2)/(c+d)^(
3/2)/f-a^3*(3*c+d)*cos(f*x+e)/d^2/(c+d)/f/(a+a*sin(f*x+e))^(1/2)+a^2*(c-d)*cos(f*x+e)*(a+a*sin(f*x+e))^(1/2)/d
/(c+d)/f/(c+d*sin(f*x+e))

Rubi [A] (verified)

Time = 0.29 (sec) , antiderivative size = 166, normalized size of antiderivative = 1.02, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.148, Rules used = {2841, 3060, 2852, 214} \[ \int \frac {(3+3 \sin (e+f x))^{5/2}}{(c+d \sin (e+f x))^2} \, dx=\frac {a^{5/2} (c-d) (3 c+5 d) \text {arctanh}\left (\frac {\sqrt {a} \sqrt {d} \cos (e+f x)}{\sqrt {c+d} \sqrt {a \sin (e+f x)+a}}\right )}{d^{5/2} f (c+d)^{3/2}}-\frac {a^3 (3 c+d) \cos (e+f x)}{d^2 f (c+d) \sqrt {a \sin (e+f x)+a}}+\frac {a^2 (c-d) \cos (e+f x) \sqrt {a \sin (e+f x)+a}}{d f (c+d) (c+d \sin (e+f x))} \]

[In]

Int[(a + a*Sin[e + f*x])^(5/2)/(c + d*Sin[e + f*x])^2,x]

[Out]

(a^(5/2)*(c - d)*(3*c + 5*d)*ArcTanh[(Sqrt[a]*Sqrt[d]*Cos[e + f*x])/(Sqrt[c + d]*Sqrt[a + a*Sin[e + f*x]])])/(
d^(5/2)*(c + d)^(3/2)*f) - (a^3*(3*c + d)*Cos[e + f*x])/(d^2*(c + d)*f*Sqrt[a + a*Sin[e + f*x]]) + (a^2*(c - d
)*Cos[e + f*x]*Sqrt[a + a*Sin[e + f*x]])/(d*(c + d)*f*(c + d*Sin[e + f*x]))

Rule 214

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(Rt[-a/b, 2]/a)*ArcTanh[x/Rt[-a/b, 2]], x] /; FreeQ[{a, b},
x] && NegQ[a/b]

Rule 2841

Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Sim
p[(-b^2)*(b*c - a*d)*Cos[e + f*x]*(a + b*Sin[e + f*x])^(m - 2)*((c + d*Sin[e + f*x])^(n + 1)/(d*f*(n + 1)*(b*c
 + a*d))), x] + Dist[b^2/(d*(n + 1)*(b*c + a*d)), Int[(a + b*Sin[e + f*x])^(m - 2)*(c + d*Sin[e + f*x])^(n + 1
)*Simp[a*c*(m - 2) - b*d*(m - 2*n - 4) - (b*c*(m - 1) - a*d*(m + 2*n + 1))*Sin[e + f*x], x], x], x] /; FreeQ[{
a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && GtQ[m, 1] && LtQ[n, -1
] && (IntegersQ[2*m, 2*n] || IntegerQ[m + 1/2] || (IntegerQ[m] && EqQ[c, 0]))

Rule 2852

Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]/((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[-2*(
b/f), Subst[Int[1/(b*c + a*d - d*x^2), x], x, b*(Cos[e + f*x]/Sqrt[a + b*Sin[e + f*x]])], x] /; FreeQ[{a, b, c
, d, e, f}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0]

Rule 3060

Int[Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]]*((A_.) + (B_.)*sin[(e_.) + (f_.)*(x_)])*((c_.) + (d_.)*sin[(e_.
) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp[-2*b*B*Cos[e + f*x]*((c + d*Sin[e + f*x])^(n + 1)/(d*f*(2*n + 3)*Sqrt
[a + b*Sin[e + f*x]])), x] + Dist[(A*b*d*(2*n + 3) - B*(b*c - 2*a*d*(n + 1)))/(b*d*(2*n + 3)), Int[Sqrt[a + b*
Sin[e + f*x]]*(c + d*Sin[e + f*x])^n, x], x] /; FreeQ[{a, b, c, d, e, f, A, B, n}, x] && NeQ[b*c - a*d, 0] &&
EqQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] &&  !LtQ[n, -1]

Rubi steps \begin{align*} \text {integral}& = \frac {a^2 (c-d) \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{d (c+d) f (c+d \sin (e+f x))}-\frac {a \int \frac {\sqrt {a+a \sin (e+f x)} \left (\frac {1}{2} a (c-5 d)-\frac {1}{2} a (3 c+d) \sin (e+f x)\right )}{c+d \sin (e+f x)} \, dx}{d (c+d)} \\ & = -\frac {a^3 (3 c+d) \cos (e+f x)}{d^2 (c+d) f \sqrt {a+a \sin (e+f x)}}+\frac {a^2 (c-d) \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{d (c+d) f (c+d \sin (e+f x))}-\frac {\left (a^2 (c-d) (3 c+5 d)\right ) \int \frac {\sqrt {a+a \sin (e+f x)}}{c+d \sin (e+f x)} \, dx}{2 d^2 (c+d)} \\ & = -\frac {a^3 (3 c+d) \cos (e+f x)}{d^2 (c+d) f \sqrt {a+a \sin (e+f x)}}+\frac {a^2 (c-d) \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{d (c+d) f (c+d \sin (e+f x))}+\frac {\left (a^3 (c-d) (3 c+5 d)\right ) \text {Subst}\left (\int \frac {1}{a c+a d-d x^2} \, dx,x,\frac {a \cos (e+f x)}{\sqrt {a+a \sin (e+f x)}}\right )}{d^2 (c+d) f} \\ & = \frac {a^{5/2} (c-d) (3 c+5 d) \text {arctanh}\left (\frac {\sqrt {a} \sqrt {d} \cos (e+f x)}{\sqrt {c+d} \sqrt {a+a \sin (e+f x)}}\right )}{d^{5/2} (c+d)^{3/2} f}-\frac {a^3 (3 c+d) \cos (e+f x)}{d^2 (c+d) f \sqrt {a+a \sin (e+f x)}}+\frac {a^2 (c-d) \cos (e+f x) \sqrt {a+a \sin (e+f x)}}{d (c+d) f (c+d \sin (e+f x))} \\ \end{align*}

Mathematica [C] (verified)

Result contains higher order function than in optimal. Order 9 vs. order 3 in optimal.

Time = 7.92 (sec) , antiderivative size = 895, normalized size of antiderivative = 5.52 \[ \int \frac {(3+3 \sin (e+f x))^{5/2}}{(c+d \sin (e+f x))^2} \, dx=\frac {9 \sqrt {3} (1+\sin (e+f x))^{5/2} \left (-8 \sqrt {d} \cos \left (\frac {1}{2} (e+f x)\right )+\frac {\left (-3 c^2-2 c d+5 d^2\right ) \left ((c+d) \left (e+f x-2 \log \left (\sec ^2\left (\frac {1}{4} (e+f x)\right )\right )\right )+\sqrt {c+d} \text {RootSum}\left [c+4 d \text {$\#$1}+2 c \text {$\#$1}^2-4 d \text {$\#$1}^3+c \text {$\#$1}^4\&,\frac {-c \sqrt {d} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right )-d^{3/2} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right )-d \sqrt {c+d} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right )-2 c \sqrt {d} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}-2 d^{3/2} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}-c \sqrt {c+d} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}+c \sqrt {d} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}^2+d^{3/2} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}^2+3 d \sqrt {c+d} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}^2-c \sqrt {c+d} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}^3}{-d-c \text {$\#$1}+3 d \text {$\#$1}^2-c \text {$\#$1}^3}\&\right ]\right )}{(c+d)^{5/2}}+\frac {\left (3 c^2+2 c d-5 d^2\right ) \left ((c+d) \left (e+f x-2 \log \left (\sec ^2\left (\frac {1}{4} (e+f x)\right )\right )\right )-\sqrt {c+d} \text {RootSum}\left [c+4 d \text {$\#$1}+2 c \text {$\#$1}^2-4 d \text {$\#$1}^3+c \text {$\#$1}^4\&,\frac {-c \sqrt {d} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right )-d^{3/2} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right )+d \sqrt {c+d} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right )-2 c \sqrt {d} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}-2 d^{3/2} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}+c \sqrt {c+d} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}+c \sqrt {d} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}^2+d^{3/2} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}^2-3 d \sqrt {c+d} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}^2+c \sqrt {c+d} \log \left (-\text {$\#$1}+\tan \left (\frac {1}{4} (e+f x)\right )\right ) \text {$\#$1}^3}{-d-c \text {$\#$1}+3 d \text {$\#$1}^2-c \text {$\#$1}^3}\&\right ]\right )}{(c+d)^{5/2}}+8 \sqrt {d} \sin \left (\frac {1}{2} (e+f x)\right )-\frac {4 (c-d)^2 \sqrt {d} \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )}{(c+d) (c+d \sin (e+f x))}\right )}{4 d^{5/2} f \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^5} \]

[In]

Integrate[(3 + 3*Sin[e + f*x])^(5/2)/(c + d*Sin[e + f*x])^2,x]

[Out]

(9*Sqrt[3]*(1 + Sin[e + f*x])^(5/2)*(-8*Sqrt[d]*Cos[(e + f*x)/2] + ((-3*c^2 - 2*c*d + 5*d^2)*((c + d)*(e + f*x
 - 2*Log[Sec[(e + f*x)/4]^2]) + Sqrt[c + d]*RootSum[c + 4*d*#1 + 2*c*#1^2 - 4*d*#1^3 + c*#1^4 & , (-(c*Sqrt[d]
*Log[-#1 + Tan[(e + f*x)/4]]) - d^(3/2)*Log[-#1 + Tan[(e + f*x)/4]] - d*Sqrt[c + d]*Log[-#1 + Tan[(e + f*x)/4]
] - 2*c*Sqrt[d]*Log[-#1 + Tan[(e + f*x)/4]]*#1 - 2*d^(3/2)*Log[-#1 + Tan[(e + f*x)/4]]*#1 - c*Sqrt[c + d]*Log[
-#1 + Tan[(e + f*x)/4]]*#1 + c*Sqrt[d]*Log[-#1 + Tan[(e + f*x)/4]]*#1^2 + d^(3/2)*Log[-#1 + Tan[(e + f*x)/4]]*
#1^2 + 3*d*Sqrt[c + d]*Log[-#1 + Tan[(e + f*x)/4]]*#1^2 - c*Sqrt[c + d]*Log[-#1 + Tan[(e + f*x)/4]]*#1^3)/(-d
- c*#1 + 3*d*#1^2 - c*#1^3) & ]))/(c + d)^(5/2) + ((3*c^2 + 2*c*d - 5*d^2)*((c + d)*(e + f*x - 2*Log[Sec[(e +
f*x)/4]^2]) - Sqrt[c + d]*RootSum[c + 4*d*#1 + 2*c*#1^2 - 4*d*#1^3 + c*#1^4 & , (-(c*Sqrt[d]*Log[-#1 + Tan[(e
+ f*x)/4]]) - d^(3/2)*Log[-#1 + Tan[(e + f*x)/4]] + d*Sqrt[c + d]*Log[-#1 + Tan[(e + f*x)/4]] - 2*c*Sqrt[d]*Lo
g[-#1 + Tan[(e + f*x)/4]]*#1 - 2*d^(3/2)*Log[-#1 + Tan[(e + f*x)/4]]*#1 + c*Sqrt[c + d]*Log[-#1 + Tan[(e + f*x
)/4]]*#1 + c*Sqrt[d]*Log[-#1 + Tan[(e + f*x)/4]]*#1^2 + d^(3/2)*Log[-#1 + Tan[(e + f*x)/4]]*#1^2 - 3*d*Sqrt[c
+ d]*Log[-#1 + Tan[(e + f*x)/4]]*#1^2 + c*Sqrt[c + d]*Log[-#1 + Tan[(e + f*x)/4]]*#1^3)/(-d - c*#1 + 3*d*#1^2
- c*#1^3) & ]))/(c + d)^(5/2) + 8*Sqrt[d]*Sin[(e + f*x)/2] - (4*(c - d)^2*Sqrt[d]*(Cos[(e + f*x)/2] - Sin[(e +
 f*x)/2]))/((c + d)*(c + d*Sin[e + f*x]))))/(4*d^(5/2)*f*(Cos[(e + f*x)/2] + Sin[(e + f*x)/2])^5)

Maple [B] (verified)

Leaf count of result is larger than twice the leaf count of optimal. \(391\) vs. \(2(148)=296\).

Time = 10.36 (sec) , antiderivative size = 392, normalized size of antiderivative = 2.42

method result size
default \(-\frac {a^{2} \left (\sin \left (f x +e \right )+1\right ) \sqrt {-a \left (\sin \left (f x +e \right )-1\right )}\, \left (\sin \left (f x +e \right ) d \left (-3 \,\operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, d}{\sqrt {a c d +a \,d^{2}}}\right ) a \,c^{2}-2 \,\operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, d}{\sqrt {a c d +a \,d^{2}}}\right ) a c d +5 \,\operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, d}{\sqrt {a c d +a \,d^{2}}}\right ) a \,d^{2}+2 \sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {a \left (c +d \right ) d}\, c +2 \sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {a \left (c +d \right ) d}\, d \right )-3 \,\operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, d}{\sqrt {a c d +a \,d^{2}}}\right ) a \,c^{3}-2 \,\operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, d}{\sqrt {a c d +a \,d^{2}}}\right ) a \,c^{2} d +5 \,\operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (f x +e \right )}\, d}{\sqrt {a c d +a \,d^{2}}}\right ) a c \,d^{2}+3 \sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {a \left (c +d \right ) d}\, c^{2}+\sqrt {a -a \sin \left (f x +e \right )}\, \sqrt {a \left (c +d \right ) d}\, d^{2}\right )}{d^{2} \left (c +d \right ) \left (c +d \sin \left (f x +e \right )\right ) \sqrt {a \left (c +d \right ) d}\, \cos \left (f x +e \right ) \sqrt {a +a \sin \left (f x +e \right )}\, f}\) \(392\)

[In]

int((a+a*sin(f*x+e))^(5/2)/(c+d*sin(f*x+e))^2,x,method=_RETURNVERBOSE)

[Out]

-a^2*(sin(f*x+e)+1)*(-a*(sin(f*x+e)-1))^(1/2)*(sin(f*x+e)*d*(-3*arctanh((a-a*sin(f*x+e))^(1/2)*d/(a*c*d+a*d^2)
^(1/2))*a*c^2-2*arctanh((a-a*sin(f*x+e))^(1/2)*d/(a*c*d+a*d^2)^(1/2))*a*c*d+5*arctanh((a-a*sin(f*x+e))^(1/2)*d
/(a*c*d+a*d^2)^(1/2))*a*d^2+2*(a-a*sin(f*x+e))^(1/2)*(a*(c+d)*d)^(1/2)*c+2*(a-a*sin(f*x+e))^(1/2)*(a*(c+d)*d)^
(1/2)*d)-3*arctanh((a-a*sin(f*x+e))^(1/2)*d/(a*c*d+a*d^2)^(1/2))*a*c^3-2*arctanh((a-a*sin(f*x+e))^(1/2)*d/(a*c
*d+a*d^2)^(1/2))*a*c^2*d+5*arctanh((a-a*sin(f*x+e))^(1/2)*d/(a*c*d+a*d^2)^(1/2))*a*c*d^2+3*(a-a*sin(f*x+e))^(1
/2)*(a*(c+d)*d)^(1/2)*c^2+(a-a*sin(f*x+e))^(1/2)*(a*(c+d)*d)^(1/2)*d^2)/d^2/(c+d)/(c+d*sin(f*x+e))/(a*(c+d)*d)
^(1/2)/cos(f*x+e)/(a+a*sin(f*x+e))^(1/2)/f

Fricas [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 503 vs. \(2 (148) = 296\).

Time = 0.38 (sec) , antiderivative size = 1322, normalized size of antiderivative = 8.16 \[ \int \frac {(3+3 \sin (e+f x))^{5/2}}{(c+d \sin (e+f x))^2} \, dx=\text {Too large to display} \]

[In]

integrate((a+a*sin(f*x+e))^(5/2)/(c+d*sin(f*x+e))^2,x, algorithm="fricas")

[Out]

[1/4*((3*a^2*c^3 + 5*a^2*c^2*d - 3*a^2*c*d^2 - 5*a^2*d^3 - (3*a^2*c^2*d + 2*a^2*c*d^2 - 5*a^2*d^3)*cos(f*x + e
)^2 + (3*a^2*c^3 + 2*a^2*c^2*d - 5*a^2*c*d^2)*cos(f*x + e) + (3*a^2*c^3 + 5*a^2*c^2*d - 3*a^2*c*d^2 - 5*a^2*d^
3 + (3*a^2*c^2*d + 2*a^2*c*d^2 - 5*a^2*d^3)*cos(f*x + e))*sin(f*x + e))*sqrt(a/(c*d + d^2))*log((a*d^2*cos(f*x
 + e)^3 - a*c^2 - 2*a*c*d - a*d^2 - (6*a*c*d + 7*a*d^2)*cos(f*x + e)^2 + 4*(c^2*d + 4*c*d^2 + 3*d^3 - (c*d^2 +
 d^3)*cos(f*x + e)^2 + (c^2*d + 3*c*d^2 + 2*d^3)*cos(f*x + e) - (c^2*d + 4*c*d^2 + 3*d^3 + (c*d^2 + d^3)*cos(f
*x + e))*sin(f*x + e))*sqrt(a*sin(f*x + e) + a)*sqrt(a/(c*d + d^2)) - (a*c^2 + 8*a*c*d + 9*a*d^2)*cos(f*x + e)
 + (a*d^2*cos(f*x + e)^2 - a*c^2 - 2*a*c*d - a*d^2 + 2*(3*a*c*d + 4*a*d^2)*cos(f*x + e))*sin(f*x + e))/(d^2*co
s(f*x + e)^3 + (2*c*d + d^2)*cos(f*x + e)^2 - c^2 - 2*c*d - d^2 - (c^2 + d^2)*cos(f*x + e) + (d^2*cos(f*x + e)
^2 - 2*c*d*cos(f*x + e) - c^2 - 2*c*d - d^2)*sin(f*x + e))) + 4*(3*a^2*c^2 - 2*a^2*c*d - a^2*d^2 + 2*(a^2*c*d
+ a^2*d^2)*cos(f*x + e)^2 + (3*a^2*c^2 + a^2*d^2)*cos(f*x + e) - (3*a^2*c^2 - 2*a^2*c*d - a^2*d^2 - 2*(a^2*c*d
 + a^2*d^2)*cos(f*x + e))*sin(f*x + e))*sqrt(a*sin(f*x + e) + a))/((c*d^3 + d^4)*f*cos(f*x + e)^2 - (c^2*d^2 +
 c*d^3)*f*cos(f*x + e) - (c^2*d^2 + 2*c*d^3 + d^4)*f - ((c*d^3 + d^4)*f*cos(f*x + e) + (c^2*d^2 + 2*c*d^3 + d^
4)*f)*sin(f*x + e)), -1/2*((3*a^2*c^3 + 5*a^2*c^2*d - 3*a^2*c*d^2 - 5*a^2*d^3 - (3*a^2*c^2*d + 2*a^2*c*d^2 - 5
*a^2*d^3)*cos(f*x + e)^2 + (3*a^2*c^3 + 2*a^2*c^2*d - 5*a^2*c*d^2)*cos(f*x + e) + (3*a^2*c^3 + 5*a^2*c^2*d - 3
*a^2*c*d^2 - 5*a^2*d^3 + (3*a^2*c^2*d + 2*a^2*c*d^2 - 5*a^2*d^3)*cos(f*x + e))*sin(f*x + e))*sqrt(-a/(c*d + d^
2))*arctan(1/2*sqrt(a*sin(f*x + e) + a)*(d*sin(f*x + e) - c - 2*d)*sqrt(-a/(c*d + d^2))/(a*cos(f*x + e))) - 2*
(3*a^2*c^2 - 2*a^2*c*d - a^2*d^2 + 2*(a^2*c*d + a^2*d^2)*cos(f*x + e)^2 + (3*a^2*c^2 + a^2*d^2)*cos(f*x + e) -
 (3*a^2*c^2 - 2*a^2*c*d - a^2*d^2 - 2*(a^2*c*d + a^2*d^2)*cos(f*x + e))*sin(f*x + e))*sqrt(a*sin(f*x + e) + a)
)/((c*d^3 + d^4)*f*cos(f*x + e)^2 - (c^2*d^2 + c*d^3)*f*cos(f*x + e) - (c^2*d^2 + 2*c*d^3 + d^4)*f - ((c*d^3 +
 d^4)*f*cos(f*x + e) + (c^2*d^2 + 2*c*d^3 + d^4)*f)*sin(f*x + e))]

Sympy [F(-1)]

Timed out. \[ \int \frac {(3+3 \sin (e+f x))^{5/2}}{(c+d \sin (e+f x))^2} \, dx=\text {Timed out} \]

[In]

integrate((a+a*sin(f*x+e))**(5/2)/(c+d*sin(f*x+e))**2,x)

[Out]

Timed out

Maxima [F]

\[ \int \frac {(3+3 \sin (e+f x))^{5/2}}{(c+d \sin (e+f x))^2} \, dx=\int { \frac {{\left (a \sin \left (f x + e\right ) + a\right )}^{\frac {5}{2}}}{{\left (d \sin \left (f x + e\right ) + c\right )}^{2}} \,d x } \]

[In]

integrate((a+a*sin(f*x+e))^(5/2)/(c+d*sin(f*x+e))^2,x, algorithm="maxima")

[Out]

integrate((a*sin(f*x + e) + a)^(5/2)/(d*sin(f*x + e) + c)^2, x)

Giac [B] (verification not implemented)

Leaf count of result is larger than twice the leaf count of optimal. 301 vs. \(2 (148) = 296\).

Time = 0.37 (sec) , antiderivative size = 301, normalized size of antiderivative = 1.86 \[ \int \frac {(3+3 \sin (e+f x))^{5/2}}{(c+d \sin (e+f x))^2} \, dx=\frac {\sqrt {2} {\left (\frac {4 \, a^{2} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )}{d^{2}} + \frac {\sqrt {2} {\left (3 \, a^{2} c^{2} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) + 2 \, a^{2} c d \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) - 5 \, a^{2} d^{2} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )\right )} \arctan \left (\frac {\sqrt {2} d \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )}{\sqrt {-c d - d^{2}}}\right )}{{\left (c d^{2} + d^{3}\right )} \sqrt {-c d - d^{2}}} - \frac {2 \, {\left (a^{2} c^{2} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 2 \, a^{2} c d \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + a^{2} d^{2} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}}{{\left (c d^{2} + d^{3}\right )} {\left (2 \, d \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )^{2} - c - d\right )}}\right )} \sqrt {a}}{2 \, f} \]

[In]

integrate((a+a*sin(f*x+e))^(5/2)/(c+d*sin(f*x+e))^2,x, algorithm="giac")

[Out]

1/2*sqrt(2)*(4*a^2*sgn(cos(-1/4*pi + 1/2*f*x + 1/2*e))*sin(-1/4*pi + 1/2*f*x + 1/2*e)/d^2 + sqrt(2)*(3*a^2*c^2
*sgn(cos(-1/4*pi + 1/2*f*x + 1/2*e)) + 2*a^2*c*d*sgn(cos(-1/4*pi + 1/2*f*x + 1/2*e)) - 5*a^2*d^2*sgn(cos(-1/4*
pi + 1/2*f*x + 1/2*e)))*arctan(sqrt(2)*d*sin(-1/4*pi + 1/2*f*x + 1/2*e)/sqrt(-c*d - d^2))/((c*d^2 + d^3)*sqrt(
-c*d - d^2)) - 2*(a^2*c^2*sgn(cos(-1/4*pi + 1/2*f*x + 1/2*e))*sin(-1/4*pi + 1/2*f*x + 1/2*e) - 2*a^2*c*d*sgn(c
os(-1/4*pi + 1/2*f*x + 1/2*e))*sin(-1/4*pi + 1/2*f*x + 1/2*e) + a^2*d^2*sgn(cos(-1/4*pi + 1/2*f*x + 1/2*e))*si
n(-1/4*pi + 1/2*f*x + 1/2*e))/((c*d^2 + d^3)*(2*d*sin(-1/4*pi + 1/2*f*x + 1/2*e)^2 - c - d)))*sqrt(a)/f

Mupad [F(-1)]

Timed out. \[ \int \frac {(3+3 \sin (e+f x))^{5/2}}{(c+d \sin (e+f x))^2} \, dx=\int \frac {{\left (a+a\,\sin \left (e+f\,x\right )\right )}^{5/2}}{{\left (c+d\,\sin \left (e+f\,x\right )\right )}^2} \,d x \]

[In]

int((a + a*sin(e + f*x))^(5/2)/(c + d*sin(e + f*x))^2,x)

[Out]

int((a + a*sin(e + f*x))^(5/2)/(c + d*sin(e + f*x))^2, x)